package com.mxl.service;


import com.mxl.entity.Book;
import com.mxl.mapper.BookMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class BookService
{
    @Autowired
    private BookMapper bookMapper;
    public Book find(int id){
        Book book = bookMapper.getBookById(id);
        return book;
    }
}
